package com.patterns.chain;

/**
 * 抽象类
 * 主任(批3天) < 经理(批5天) < 总经理(批10天)
 * @author huangke
 *
 */
public abstract class Leader {
	protected String name;//领导名称
	protected Leader nextLeader;//上级审批领导，责任链的后继对象
	public Leader(String name) {
		this.name = name;
	}
	public void setNextLeader(Leader nextLeader) {
		this.nextLeader = nextLeader;
	}
	
	/**
	 * 处理请求的核心业务方法
	 */
	public abstract void handleRequest(LeaveRequest r);	
}
